#include<stdio.h>
int main()
{
	int k,n1=100,n2=50,n3=10;
	double s1=0,s2=0,s3=0,sum;
	for(k=1;k<=n1;k++)
	{
		s1=s1+k;
	}
		for(k=1;k<=n2;k++)
	{
		s1=s1+k*k;
	}
		for(k=1;k<n3;k++)
	{
		s1=s1+1.0/k;
	}
	sum=s1+s2+s3;
	printf("sum=%15.6f\n",sum);
}
